HCreateResFile
short vRefNum ; volume reference number long dirID ; directory ID
ConstStr255Param fileName ; filename
specified by the values of vRefNum and dirID. The vRefNum parameter contains
the volume reference number of the volume on which the file is located. The
dirID parameter contains the directory ID of the directory where the file is
located. The string passed in the fileName parameter is the name of the
resource file. Call the ResError function to check for errors. dirFulErr (-33) Directory full
dskFulErr (-34) Disk full
nsvErr (-35) No such volume
ioErr (-36) I/O error
bdNamErr (-37) There may be no bad names in the final system
tmfoErr (-42) Too many files open
wPrErr (-44) Disk is write-protected
fLckdErr (-45) File is locked
vLckdErr (-46) Volume is locked
dupFNErr (-48) Duplicate filename (rename)
opWrErr (-49) File already open with write permission
extFSErr (-58) Volume belongs to an external file system
dirNFErr (-120) Directory not found
opening resource files using HFS. These functions are based on the
specification records.